import { createSelector } from 'reselect';
import { Map } from 'immutable';

export const selectStore = (state: Map<string, any>) => state.get('worker_list');

export const selectWorkers = () => createSelector(
    selectStore,
    (state: Map<string, any>) => state.get('workers')
);

export const selectWorkerLoading = () => createSelector(
    selectStore,
    (state: Map<string, any>) => state.get('loading_workers')
);
